package com.dst.note.editor.render.word_render;

import com.dst.note.model.Style;
import com.dst.note.editor.render.NoteWordSpanRender;
import com.dst.note.editor.spans.NoteBoldSpan;

/**
 * Created By tgl on 2020/10/4
 */
public class NoteBoldSpanRender extends NoteWordSpanRender<NoteBoldSpan> {

    @Override
    protected NoteBoldSpan createSpan() {
        return NoteBoldSpan.create();
    }

    @Override
    protected int getStyle() {
        return Style.Bold;
    }

    @Override
    protected boolean isStyle(int style) {
        return Style.isWordStyle(style, getStyle());
    }
}
